package com.common.myspring.business;

import com.common.myspring.annotation.Component;
import com.common.myspring.annotation.Resource;
import com.common.myspring.service.UserService;

/**
 * @title: UserBusiness
 * @Author xu-xiang
 * @Date: 2023/8/26 16:51
 * @description:
 */
@Component
public class UserBusiness {

    @Resource(value = "userServiceImpl1")
    private UserService userService1;

    @Resource(value = "userServiceImpl2")
    private UserService userService2;

    @Resource
    private OtherBusiness otherBusiness;

    public void operate() {
        userService1.say();
        userService2.say();
        otherBusiness.operate();
    }
}
